package com.enba.mallapi.module.auth.bo;

import com.enba.boot.core.utils.TreeNode;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.EqualsAndHashCode;

/** 组织结构树节点 */
@EqualsAndHashCode(callSuper = true)
@Data
public class OrgTreeNodeBo extends TreeNode implements Serializable {

  private static final long serialVersionUID = 1L;

  public OrgTreeNodeBo(Long id, Long parentId, String orgName) {
    super(id, parentId, orgName);
    this.id = id;
    this.parentId = parentId;
    this.orgName = orgName;
  }

  @ApiModelProperty("组织id")
  private Long id;

  @ApiModelProperty("组织机构编码")
  private String orgCode;

  @ApiModelProperty("组织机构名称")
  private String orgName;

  @ApiModelProperty("组织机构路径")
  private String orgPath;

  @ApiModelProperty("上一级组织id")
  private Long parentId;

  @ApiModelProperty("上一级组织编码")
  private String parentCode;

  @ApiModelProperty("组织机构类型（1：集团 2：公司 3：部门）")
  private Integer orgType;

  @ApiModelProperty("状态（0：启用 1：禁用）")
  private Integer status;

  @ApiModelProperty("创建时间")
  private LocalDateTime createTime;

  @ApiModelProperty("更新时间")
  private LocalDateTime updateTime;

  @ApiModelProperty("删除（0：未删除 1：已删除）")
  private Integer deleted;
}
